//
//  secondModel.m
//  LT
//
//  Created by dllo on 16/5/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "secondModel.h"
#import "ThirdModel.h"

@implementation secondModel


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"name"]) {
        self.secondName = value;
        
    }
    
}


-(void)setGroup:(NSMutableArray *)group{
    

    _group = [NSMutableArray array];
    //遍历每一个小字典
    for (NSDictionary *dic in group) {
       ThirdModel *hotGroup = [[ThirdModel alloc]init];
        //KVC
        [hotGroup setValuesForKeysWithDictionary:dic];
        [_group addObject:hotGroup];
        
    }
  
    
}



@end
